package com.allwees.bs.c.module.product.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 产品详情
 */
@Data
@NoArgsConstructor
public class ProductReviewContentDTO {
    private String content;
    private int rating;
    private Date time;
    private List<String> photos;
    private ProductReviewUserDTO user;

//    public ProductReviewContentDTO(EsProductReviewInfo reviews) {
//        PojoUtil.copyWithOmit(this, reviews, "content", "photos");
//
//        this.rating = reviews.getRating();
//        this.content = reviews.getComment();
//        this.photos = reviews.getPhotos();
//        this.user = new ProductReviewUserDTO(reviews.getUser());
//    }
}
